add two algorithms