Brooklyn swimming pool to double as skating rink