add an algorithm Nov 23rd