The C++ version of low rank representation