who invented the math subject ?