Simple implementation of random forest