Add a new algorithm.