C++ neural network simulator