Improve memory usage in quadgk integration method

- avoid creating CDynamicArray objects in cycle