Array implementation of a queue