Simple Linear regression algorithm in machine learning with example graph