working insertionSort and testing