Librarian leaves half her £2 million estate to charities