Updated LCS to print length of subsequence.