add two algorithms Nov 3rd