Added Node::getAncestor()