Simulated annealing implemented in Python 3.4 for TDT4136 Introduction to AI