code: public static double computeEuclideanSquared(
          DoubleTuple t0, DoubleTuple t1)
      {
          Utils.checkForEqualSize(t0, t1);
          double sum = 0;
          int n = t0.getSize();
          for (int i=0; i<n; i++)
          {
              double value0 = t0.get(i);
              double value1 = t1.get(i);
              double d = value1 - value0;
              double dd = d * d;
              sum += dd;
          }
          return sum;
      }
docs: Computes the squared Euclidean distance between the given tuples
  
  @param t0 The first tuple
  @param t1 The second tuple
  @return The squared distance
  @throws IllegalArgumentException If the given tuples do not
  have the same {@link Tuple#getSize() size}