Rewrote all of the quadtree code.