Implement and test polygon area calculation, and trapezoid rule, needed for inclusion of age constraints.