Initial version of annealing algorithm
Add comments