added loopTrainRandomForest()