Move read_digit and generate_deformed to separate file
Nonrandom Hopfield network