ENH: Finished Cytoning bellman.main. Right now it runs slower than the python equivalent, so I think some types must be wrong. Going to check them next