add lreg example.
change test_lreg to use code im example.linear_regression
Merge pull request #31 from EasonLiao/lreg_example

add linear regression example and use code of it in test