added insertionSort and test functionality