nice vectorized linear regression cost function with gradient is in linearRegCostFunction.m