add value iteration method