Queue class changes:Added iterator