Add tree validator

Can now check to see if tree has at least 1 copy of each input nodes in
tree. This is important because without input nodes, the tree will not
be able to evaluate properly.