selection_sort exercise