refactor trees.go, removed dependency for Ch02.knn