add three algorithms Oct 23rd