Finishing off Longest Common Subsequence Problem