Implemented and tested Policy Iteration.