introduce levels, add knapsackDuplicate and knapsack01