modified to discount value on Bellman backup
Part II of homework, including Bellman error