History-Dependent Attractor Neural Networks