In case that the tree is empty, build the full tree from bottom to top (from all the leaf to the root).