Initial commit for knapsack. (Have to catch up.)