Add HeuristicAlgorithm class.