Changed theta calculation to allow future multi variable linear regression changes