Algerian president sacks prime minister