code: public Tree parent(Tree root) {
          List<Tree> kids = root.children();
          return traverse(root, kids, this);
      }
docs: Returns the parent of the passed in tree via traversal
  @param root the root node
  @return the tree to traverse