Adds solution for Longest Common Subsequence using DP