Simulated Annealing Algorithm Code Example