Add algrithm