implement the longest common substring.