An implementation of various basic sorting algorithms in Ruby