prob2 deque written