add an algorithm Nov 9th