This is to remove num_actions from DiscreteDP, following my argument in QuantEcon/QuantEcon.jl#94 (comment).
And also remove a small inefficiency in modified_policy_iteration.
Pull the definition of `tol` out of the for loop
@oyamad Thanks for this. I will plan to leave this open for comment another day or two and then I will merge into master.