add three algorithms, Oct 19th