Algerian rebel gets life sentence