The recent hostage crisis at a gas plant in Algeria, and Islamist violence in Mali, both illustrate the reach of jihadist movements in Northern Africa.