The Evolution of AI: A Historical Perspective