Algorithm For Implementing Queue Using Stacks