added algorithm that implements queue with two stacks