Update algorithm for LCA.
Fix typo.