implementations of algorithms from Cormen - Introduction to Algorithms