Lca Using Sparse Table Algorithm