Implement Deque as part of assignment 2