add an algorithm Nov 29th