finally got the toy example working for random forest.