Matlab simulated annealing algorithm