value iteration 1st