Fixing the issue in range() in KDTree causing the first one be wrongly included.
Replacing double comparison suing == with Double.compare
Adding UseX flag to Node and using it to decide which side should be checked first while finding the nearest. Turning off the showing nearest using PointSet.
Fixing the logic of pruning nodes further than closes point discovered so far.