Add two algorithms