segment delete tree with just recursive nodes.
storing calculating elements to left and total_elements below.