LongestCommonSubsequence for two strings.