Solves CodeEval challenge "Longest Common Subsequence" https://www.codeeval.com/public_sc/6