Updated Queue.reverseQUeue and Added a Test