Iterators and algorithms with iterators