tree: TreeClassifier implementation finished