Refactor TreeEvaluator into tree module
Move tree initializer and evaluator into tree module