Longest Common Subsequence (LCS). Faster Dynamic Programming Version.
http://rosettacode.org/wiki/Longest_common_subsequence#Faster_dynamic_programming_version
See Implementation
Longest Common Subsequence (LCS). Faster Dynamic Programming Version.