Added 2 algorithms