PolicyIteration class now stable

Fixes to make the use of policy iteration now possible. This includes some unit tests for this class. It has been lightly tested for usefulness, buty much more testing needs to be done.
This tag has no release notes.