Added Lowest Common Ancestor Algorithm