added functions for mining fp-tree