added simple integration methods: trapz,simps

This adds trapezoidal and simpson integration methods to base,
mostly to address integration of tabulated (vector) input.
Versions that take function input are included for comparison.
Some tests are included for accuracy and consistency between
the methods.