Cell suicide in the developing nervous system: a functional neural network model