Projective simulation for artificial intelligence | Synapse