Morocco and Algeria have been at odds for decades, chiefly over the disputed Western Sahara region. But their rivalry now extends far beyond the territory.