Solution To Numerical Dynamic Programming Problems