The Hedonistic Neuron: A Theory of Memory, Learning and Intelligence