Who was the mathematician and philosopher known for his work with the theory of limits and the invention of calculus?