Update nnCostFunction.m