added tree_getRoot() method: looks up root node of a given leaf