Algorithms for the Merged-LCS Problem and Its Variant with Block Constraint ∗