add an algorithm Nov 19th