Queue implementation with array supporting enqueue, dequeue, resizing and iterator