Value Function Iteration using grid search.