Update Longest Common Substring (Subsequence)