Credits to http://www.cse.ust.hk/~yike/fdtree_pvldb.pdf