Replaced bellman implementation with one that uses queues rather than recursion.
Updated tests
Merge pull request #36 from tutorgen/fix-bellman

Replaced bellman implementation with one that uses queues rather than re...

seems to work fine, tests pass