SAopt function

Optimisation with Simulated Annealing