Added selectionSort