Added longest common sequence algorithm for diff.