Cleaned up SelectionSort