add two algorithms Nov 2nd