Add C++ code for machine learning using neural networks