Queues in a single array