Use cumulative integral when finding CDF in type_pdf.f90