Deque and Randomied Queue