basic implementation
Merge https://github.com/aceveggie/LogisticRegression