add an algorithm Oct 31st