C++ implementation of my Random Forest code