Added the ability to use a discount factor in finite-horizon policy
evaluation.