Added MDP class with value iteration