Computer algorithms are better than people at forecasting recidivism, at least in some situations, a new study finds.