This Class implements a basic Hopfield neural network along with some useful functions for error calculation