Ибн Хальдун
Ibn Khaldun divided the Berbers into the Batr and the Baranis.