There are hundreds of thousands of libraries around the globe. Some are ancient architectural marvels