Improve L1ID/BCID matching algorithm.