This is a python code for linear regression algorithm