add three algorithms Oct 12nd