latent causes, prediction errors and the organization of memory