Mathematics in Ancient Egypt: A Contextual History