NF: Compute confidence intervals on binomial proportions

This should be useful for statistical evaluation of classifier
accuracies.