Works a mite better.  Two queues, and an array.