lca extended to binary trees