use ccv_minimize to do the logistic regression