Added insertionSort method