nnet working with Cpp package