"Simple" neural network implementation in C++