equals() added to Knapsack class