Update queue to be based on Deque
Updated queue to store a pointer to Deque instead of copy
Updated stack to be based on Deque data structure