Efficient computation of ordinary and generalized Poisson binomial distributions
