Selection_sort.rb. Light refactoring