Implemented Longest Common Subsequence