Algorithms in CLRS using C++