implemented a queue with two stacks