add an algorithm Nov 8th