max and mingap for apriori-like algorithm