add less Common Ancestor algorithm