MD lawmakers agree on how to reform criminal justice system