KnapSack comparison of naive & memorization