How the Brooklyn Heights library branch found a new hom