shellSort, mergeSort and iterator