code: public static double[] copyOf(double[] original, int newSize) {
       double[] a = new double[newSize];
       System.arraycopy(original, 0, a, 0, original.length);
       return a;
    }
docs: Simulate Arrays.copyOf method provided by Java 6
  When/if the JavaNLP-core code base moves past Java 5, this method can be removed
  
  @param original
  @param newSize