Change where2 so that it returns a tree of nodes where each node hsa .val and ._up and ._kids