added crossvalidation for logistic regression