tree building benchmark implemented