Encapsulate helping functions and constructors of DecisionTree and RandomForest into separate namespace