added O(NlogN) LCA Algo implementation