public byte dominantDimensionNum()
        {
            int d = -1;
            int dl = -1;
            for (int i = 0; i < min.length; i++)
            {
                int il = max[i] - min[i];
                if (il > dl && canSplitInDim(i))
                {
                    dl = il;
                    d = i;
                }
            }
            return (byte) d;
        }