Terminal attractors in neural network