add hopfield neural network (not tested)