Some common algorithms...in ruby...for practice...for fun