Finished BELLMAN solution