code: static MutableIntTuple validate(
          IntTuple t, MutableIntTuple result)
      {
          if (result == null)
          {
              result = create(t.getSize());
          }
          else
          {
              Utils.checkForEqualSize(t, result);
          }
          return result;
      }
docs: If the given result is <code>null</code>, then a new tuple with
  the same size as the given tuple will be created and
  returned. Otherwise, it will be checked whether the given
  tuples have equal sizes.
  
  @param t The reference tuple
  @param result The result tuple
  @return The result tuple
  @throws NullPointerException If the given reference tuple is
  <code>null</code>
  @throws IllegalArgumentException If the given result tuple is
  not <code>null</code> and does not have the same
  {@link Tuple#getSize() size} as the given tuple