Surprise Plus Memory Equals Learning