Worked on implementation for simulated annealing.