the invention of writing