Sorting algorithms written in Ruby