public void addElements(final double[] values){
  final double[] tempArray=new double[numElements + values.length + 1];
  System.arraycopy(internalArray,startIndex,tempArray,0,numElements);
  System.arraycopy(values,0,tempArray,numElements,values.length);
  internalArray=tempArray;
  startIndex=0;
  numElements+=values.length;
}

public void addElements ( final double [ ] values ) { final double [ ] tempArray = new double [ numElements + values . length + 1 ] ; System . arraycopy ( internalArray , startIndex , tempArray , 0 , numElements ) ; System . arraycopy ( values , 0 , tempArray , numElements , values . length ) ; internalArray = tempArray ; startIndex = 0 ; numElements += values . length ; }
adds several element to the end of this expandable array .
