logistic regression using BFGS algorithm for minimization