Fix quadtree infinite recursion

Attempts to fix #4.

When two points have identical values on one or more of their axes, the quadtree descends into an infinite recursion.

Fix this by ensuring that the points are placed in opposite nodes on the given axis.