add an algorithm Oct 24th