Since `x1` is outside the scope of this function, it will be preserved across calls to quadtree(data), which isn't what you want. I guess you'll need local variables for the computed bounds?