Before merging some leftover changes from x875
Merge branch 'master' of https://github.com/mruan/randforest
Merged with some changes from x835 by moving important impl. to hpp