added treeHeight & numOfNodes