New York to shrink its prison footprint