Switch to Hirschberg's linear space LCS algorithm