completed dequeu, passes all test