Collection of algorithms implemented in ruby