add two algorithms Nov 6th