He was an inmate. Now he's a Ph.D., and he wants to pay it forward.