Finish annealing algorithm