First draft of a quadtree implementation.