A Java representation and tests of a KDTree.