Magic square for Simulated annealing implemented.