c++ class representation for basic feed forward neural network