Add Longest Common Subsequence algorithm