used for chapter 3
use two stacks to implement a queue