Apriori-modified-version added, prepared for reimpl