adding least square example
Merge pull request #11 from mohit1007/master

 adding least square example