An efficient and reliable quadrature algorithm for integration with respect to binomial measures