add KnapsackProblem and LCS