A Provably Accurate Randomized Sampling Algorithm for Logistic Regression