add three algorithms Oct 4th