add an algorithm Nov 10th