queue: queue implemented with an array