code: static long computeWrappedChebyshev(
          LongTuple t0, LongTuple t1, LongTuple size)
      {
          Utils.checkForEqualSize(t0, t1);
          long max = 0;
          for (int i=0; i<t0.getSize(); i++)
          {
              long d = MathUtils.wrappedDistance(
                  t0.get(i), t1.get(i), size.get(i));
              max = Math.max(max, Math.abs(d));
          }
          return max;
      }
docs: Computes the Chebyshev distance between the given tuples
  when they are interpreted as points of a sphere with the specified
  size (that is, circumference).
  
  @param t0 The first tuple
  @param t1 The second tuple
  @param size The size of the sphere
  @return The distance
  @throws IllegalArgumentException If the given tuples do not
  have the same {@link Tuple#getSize() size}