find error in one version of knapsack(comment on it)
complete program for optimalBST