Reworked logistic regression classifier

Merged PR #1227 to master and reworked logistic regression module to conform with new machine learning framework architecture.
this is not needed anymore in header files, please, remove it