modify compute_cdf simplification of Min functions