multistate hopfield neural network