Added LCA with dp using powers of 2