Ruby class that implements several common sorting algorithms.