changed insertionSortIterative