A bit more general random forest