modification

knapsack dp&another bit function