finished simulated annealing with spark