Tag - longest common subsequence dynamic programming