dBTree: add size calculation