C++ Random Forest Implementation