This is a queue, which keeps the elements even after they are retrieved.
int head
Index of the head of the queue.
int tail
Index of the tail of the queue.
array(kernel) arr
The queue itself.