queue using single stack