Implemeting a queue using a Stack