Updated NeuralNet constructor's size calculation to take into account
the single weight for each of the input nodes.
Added weights array initialization logic to NeuralNet.