Updated random tree to apply a secondary learner after a specified depth K. This makes the model more elegant and removes the nead for leaf/node separation.