Use numpy in slow knapsack solver.