Changed queue implementation from doubly linked list to circular array