結果 : explain in detail longest common subsequence lcs string matching algorithm with example