working simulateAnnealing

simulateAnnealing doesn't do well but the alg is working