NF: Compute confidence intervals on binomial proportions

This should be useful for statistical evaluation of classifier
accuracies.
I would have also tested some boundary condition (1 or 2?)