added createchild() and getchild() functions to node class; modified addnode() function in tree class