refactor the randomforest class for adding hybird forest