refit
Updates the bounding volumes of the nodes by recalculating the bounds based on the provided objects.
Return
The updated bounding rectangle for the current node.
Parameters
objects
The list of objects used to update the bounding volumes of the tree.
mapper
A function that maps an object of type T to its corresponding bounding rectangle.