gauss quadrature working