A Model of Criminal Justice Discretion