Understood CORMEN now. Adding an unfinished implementation of the method.