HopfieldNetwork class added as library