Added tarjan LCA implementation