corrected naming: longest common subsequence (not substring) is being calculated--the difference being that substrings must be contiguous, subsequences need not
renamed *lcs functions to *lcsseq to avoid ambiguity with *lcsstr functions (to come)