improve memory usage in quadgk integration method
Merge pull request #1403 from votjakovr/feature/numerical_integration

Improve memory usage in quadgk integration method