Important bug fixed (see description)

Small bug in procedure for decoding message from root process was fixed.
Bug in add neuron procedure was fixed (due to reallocation in neuron's
vector all pointers in synapses are becoming invalid). This bug doesn't
affect results because during creating networks we first added all
neurons.