Removed unused imports.
Knapsack improved.