treeRep must start with root. Thus, adding function findRoot()