add geometric and exponential distribution
fix newton-cotes stepsize