Add simple computeCost function for linear regression.