C++ realistic classification regression tree algorithm (machine learning, decision tree)