add dpProgram of LCS and LCString