C++ implementation of the DCLabel model