Efficient two-sample Bernoulli confidence intervals and submodular dispatching