added gauss quadrature source code for curvature method