High-dimensional classification by sparse logistic regression