add longest common subsequence's continous version impl