add lowest common ancestor of the tree