add an algorithm Nov 21st