Which civilizations were the first to record measurements.