Adding nodes to the tree