fixing segfault bug with linear regression
Merge pull request #9 from jlevallois/SimpleRegression

Fixing segfault with linear regression