modify SelectionSort