implement queuestacks, an optimized queue implemented with two stacks