Exact Logistic Regression: Theory and Examples