Updating the Bellman equation iteratively