Update regression.js

Linear Regression function returns an object, not an array. Previously, it was returning NaN for "y"
The `linearRegression` method does return an array.