Algeria beat beat Somalia, who have already been eliminated, on Thursday to qualify for their fifth World Cup, thus completing an unprecedented treble for North African countries, with Morocco and Tunisia also securing their places at the next summer’s tournament.