Queue with two stacks, avoiding copying