Backdoor in AI: Algorithms, Attacks, and Defenses