Implement an array based circular-queue.