I believe this is the reason why it slows down when all the agents are close to the target (too many neighbor search).