LCS compare