Set difference (−Set) algorithm based on TPMMS