added insertionSort(int[] a) method