Longest Common Sequence Calculator