Some of my favorite algos in ruby