Implemented Gauss-Legendre quadrature in 1D.