Fix bug where nodes could be iterated several times, so knearest returned multiple instances of the same points within the quadtree. Move boundary intersection to after the check, if the subtree was already visited.
Fix bug where nodes could be iterated several times, so knearest returned multiple instances of the same points within the quadtree. Move boundary intersection to after the check, if the subtree was already visited.

asim/quadtree