Implemention of an approximation of integration using Riemann Sums