Amendments to Simulate Annealing algorithm