LCS updated - Longest Common Subsequence