add_algorithm