Added simulated annealing algorithm.