code: public static float distanceSq( float[] a , float[]b ) {
  		float ret = 0;
  		for( int i = 0; i < a.length; i++ ) {
  			float d = a[i] - b[i];
  			ret += d*d;
  		}
  		return ret;
  	}
docs: Returns the Euclidean distance squared between the two vectors