The 14th-century North African scholar whose Muqaddimah pioneered the study of history as a science and laid the groundwork for modern sociology.