At least 38 people have been killed and dozens more injured in forest fires that have devastated northern Algeria.