How Humans Learn to Think Mathematically: The Historical Evolution of Mathematics