How Criminal Law Affects Bail and Detention in New York