code: public static boolean incrementLexicographically(
          IntTuple t, IntTuple min, IntTuple max, MutableIntTuple result)
      {
          Utils.checkForEqualSize(t, min);
          Utils.checkForEqualSize(t, max);
          Utils.checkForEqualSize(t, result);
          if (result != t)
          {
              result.set(t);
          }
          return incrementLexicographically(
              result, min, max, result.getSize()-1);
      }
docs: Lexicographically increment the given tuple in the given range, and
  store the result in the given result tuple. It is assumed that the
  elements of the given tuple are
  {@link #areElementsGreaterThanOrEqual(IntTuple, IntTuple) greater than
  or equal to} the values in the given minimum tuple.<br>
  <br>
  Note that in contrast to most other methods in this class, the
  given result tuple may <b>not</b> be <code>null</code> (but it
  may be identical to the input tuple).
  
  @param t The input tuple
  @param min The minimum values
  @param max The maximum values
  @param result The result tuple
  @return Whether the tuple could be incremented without causing an
  overflow