Implementations in C++ of CLR algorithms