Switched to bool type for nodes values. Recursive evaluation of trees.