commiting Logistic regression C/C++