azp_sa function

A simulated annealing algorithm to solve the AZP problem