Added selectionSort(int[] a) method