fixed the NN not searching over all particles when spliiting jobs for threads