Artificial Intelligence for Face Recognition in Security Systems: A Review of Algorithms and Challenges