Circular array queue implementation.