add  longest common subsequence