added insertionSort method