Mathematics in the Time of the Pharaohs