Update matching algorithm for particle id.