Algerian president pardons over 5,000 prisoners