Adding Longest Common Subsequence