Algeria wins second nations cup