Function to determine the depth of the rtree