renamed to SelectionSort