A simulation of Borges' infinite library