Add: Base templated class for Simulated Annealing.