A Hierarchical Structure for Locating Intersection in Large Sets of B-spline Curves