add an algorithm Nov 17th