Implement logistic_regression_predict/c++