added quadgk integration routine
Merge pull request #3140 from stevengj/quadgk

RFC: quadgk integration routine