ابن خلدون
Ibn Khaldun divided the Berbers into the Batr and the Baranis.