Stochastic Knapsack Solver via Dynamic Programming