implementation of PrefixScan algorithm to find frequenct sequence patterns