insertionSort works