Lab 6, sorted with iterators