Algorithms from Introduction to Algorithms