separating the logic for tree management from the nodes
working some of the logic for prediction/clustering/etc. into the 'Tree' classes.