b2DynamicTree cost heuristic

I want to use this structure in my project but with some modifications, specifically adding z-index interval data to the tree nodes. However, I don't understand the cost heuristic. Could someone explain it? Before r113 it looked like surface area heuristic, but now it is different.

Original thread: https://box2d.org/forum/viewtopic.php?t=9995