add an algorithm Nov 20th