Homework7

It seems that some problem happens in modified policy iteration
algorithm when T = 1. Maybe in this case we should use stopping
condition for value iteration