ReinforcementLearning, Value iteration