Quadtree algorithm started (a little more work to do)