add LCA using recursion method