Added function definitions for iterators in deque