Mathematics, History