add selection sort in ruby