runRichCluster function

Run clustering in C++ backend