Various attempts at building a "C-like" Ruby implementation of various sort methods