NeuralNetwork and NeuralNetworkLayer implement in cplusplus code