Corrected bug in CDF calculation in cdf_SEG & cdfMap_SEG