according to haddad , in the latter part of the eighteenth century bainbridge visited the library of alexandria , then wrote a novel about his experience that , according to the notes , contained clues to the library 's location .