cleaned up recurse_subtree

cleaned up recurse_subtree to take advantage of the sklearn tree data structure