Add algorithm class.