ruby implementations of classic sorting algorithms