Moved Deque classes into their own files.