BUG: btildprime from 394 of inner_opt was wrong. Also there were some indexing errors in bellman.main