working on iterators in std::deque