Fixed LCS off-by-one error; caused by one-based index in pseudocode.