linear regression from scratch python