Create a QueueImpl with specified initial capacity.
Removes all items from the queue.
Removes an item from the back of the queue.
Removes an item from the front of the queue.
Adds an item on the back of the queue.
Adds an item on the front of the queue.
Doubly-indexed queue, can be used as a FIFO or stack.