some of my favorite algorythems implemented in ruby