because CFactorGraph is derived from CFeatures, the duplicate() has to be implemented, I referred to LatentFeatures, at LatentFeatures.cpp:36