Using Dynamic Programming with Adaptive Grid Scheme to Solve Nonlinear Dynamic Models in Economics