classwork for selectionSort() method.