fixed insertionSort()