add three algorithms Nov 13rd