Sealed the knapsack two dim matrix