Deterministic annealing of an Hopfield model