sum_node_vals done for trees