Bag intersection (∩Bag) algorithm based on TPMMS