Video: Solving LCS with dynamic programming