cNeighMat to NeighMat

in update_network
also agentInRange sorted