Compacted selection-sort.rb