Update Longest common substring