Create nnCostFunction.m