add the missing functions minFunc, softmaxCost, softmaxPred.m