Discrete Hopfield Neural Network