Add logistic regression and refactoring

- add logistic regression
- extract regularizer and loss functions; renaming
- add other loss functions and regularizer
- move regularizer parameter to initialization
- add tolerance to test assertion
Add Travis

- add .travis.yml
- adapt README.md