some stuff I wrote to solve the knapsack problem