Bug fixing

Fixed the quadtree methods to retrieve  N-S-W-E neighbors.