Algorithms from the 4th Edition of Introduction to Algorithms implemented in Ruby