simple linear regression from scratch python