Linear regression calculation, slope and trend calculation