1D knapsack with size of set stored.