func simpleSelectionSort(unsorted []int, n int) { var key, temp int for i:=0; i a[j] { k = j } } return k }