what is importance of Lagrange's theorem