add 2 algorithms