add an algorithm Nov 11st