Added test to verify that pendulum simulator is eventually entering the terminal state.
Added a pendulum program that tests LSPI for the pendulum domain. Also fixed a few bugs in the policy evaluation methods.