Rename costFunctionReg to costFunctionReg.m