add apply(,null) for InstanceOfNeuralNetwork; fix softmax function bug