Fix QuadTree subdivision.
Merge pull request #731 from tobeytailor/quadtree

Fix QuadTree subdivision.