Making a neural net in C++