ENH: Finished initial cython implementation of bellman.main. Still need to check some types, check for accuracy and profile