All tests passed on deque.cpp