The Legal Process for Pretrial Detention in New York