add basic LCA without parent pointer