Sorted array with iterators