Ground work laid for longest common subsequence