removed usage of null from RandomForest and replaced with Option