Reworked logistic regression classifier

Merged PR #1227 to master and reworked logistic regression module to conform with new machine learning framework architecture.
since mldata is general-use class, for more logical ordering I suggest to move logistic_regression above mldata