FP Tree generator