Bak-sneppen models for the evolution of structured knowledge