add an algorithm Nov 24th