Objective C Linear Regression calculations