insertionSort updated