MSPS mining algorithm