broad phase collision detection algorithm