This is a QuadTree vs. Set efficiency test. It includes my own QuadTree implementation.