A computational approach to criminal justice reform