Change function name to selectionSort