Implement simulated annealing.