Deque And Priority Queue