Adds longest common sequence DP