code: public static int countDifferences(IntTuple t0, IntTuple t1)
      {
          if (t0.getSize() != t1.getSize())
          {
              throw new IllegalArgumentException(
                  "Sizes do not match: "+t0.getSize()+
                  " and "+t1.getSize());
          }
          int n = t0.getSize();
          int differences = 0;
          for (int i=0; i<n; i++)
          {
              if (t0.get(i) != t1.get(i))
              {
                  differences++;
              }
          }
          return differences;
      }
docs: Returns the number of entries of the given tuples that are
  different
  
  @param t0 The first tuple
  @param t1 The second tuple
  @return The number of differences
  @throws NullPointerException If any of the arguments is <code>null</code>
  @throws IllegalArgumentException If the given tuples do not have
  the same {@link IntTuple#getSize() size}