Add ability to train a single tree from random instances