Adding cpp program that implements a parallel quadrature algorithm.
Refactored code so that quadrature algorithm is contained inside its own function that is called from main.