Finished initial implementation of deque