algorithm: longest common subsequence passes all tests