class KDTree {

    public boolean isInsideBoundaries(Datum queryDatum) {
        RealVector vector = queryDatum.metrics();
        for (int i=0; i<k; i++) {
            if (vector.getEntry(i) < this.boundaries[i][0] || vector.getEntry(i) > this.boundaries[i][1]) {
                return false;
            }
        }
        return true;
    }

    public  KDTree(List<Datum> data, int leafCapacity);

}