Ants behave like a neural network