set tree to point to the new node

*ptree = ptr;