added not fast alternative of Knapsack and LCS