integrating quadtree into files.  Runs very slow right now