First implementation, queue, reverse vector