slopebypoint function

Returns the slope from linear regression with x values as equally spaced 1:length