code: public static int compareLexicographically(IntTuple t0, IntTuple t1)
      {
          Utils.checkForEqualSize(t0, t1);
          for (int i=0; i<t0.getSize(); i++)
          {
              if (t0.get(i) < t1.get(i))
              {
                  return -1;
              }
              else if (t0.get(i) > t1.get(i))
              {
                  return 1;
              }
          }
          return 0;
      }
docs: Compares two tuples lexicographically, starting with
  the elements of the lowest index.
  
  @param t0 The first tuple
  @param t1 The second tuple
  @return -1 if the first tuple is lexicographically
  smaller than the second, +1 if it is larger, and
  0 if they are equal.
  @throws IllegalArgumentException If the given tuples do not
  have the same {@link Tuple#getSize() size}