How Mathematics Evolved Over Time