improve geometric pdf/cdf calculation