LCP computation (not animated yet)
Simplify LCP code