Handling a queue with arrays?

you could have a start and end index indicating if something is on queue (start != end) and the position of msg to send (start)