Added longest common substring and subsequence