protected void addInternal(DoubleIntegerDBIDPair pair){
  if (size == data.length) {
    DoubleIntegerDBIDPair[] old=data;
    data=new DoubleIntegerDBIDPair[(data.length << 1) + 1];
    System.arraycopy(old,0,data,0,old.length);
  }
  data[size++]=pair;
}

protected void addInternal ( DoubleIntegerDBIDPair pair ) { if ( size == data . length ) { DoubleIntegerDBIDPair [ ] old = data ; data = new DoubleIntegerDBIDPair [ ( data . length << 1 ) + 1 ] ; System . arraycopy ( old , 0 , data , 0 , old . length ) ; } data [ size ++ ] = pair ; }
add an entry , consisting of distance and internal index .
