hopfield network dynamics explained