Univariate Linear Regression Algorithm