Simple linear regression

- Backport from imagene of simple linear regression.
- simple unit test added