add an algorithm Nov 16th