knapsack and merge

added knapsack(rec and non rec) to DP.
Modified merge of mergesort.