[FYR] implements Hopfield Network