Simple implementation of a Hopfield Neural Network