added updated logistic regression prototype with newer C++ API