Compute AUC using trapezoide and Simpson rule.