lowest-common-subsequence finished