public void add(double[] vals, int offset, int length) {
   synchronized (mutex) {
     list.add(vals, offset, length);
   }
 }
 public void add(double[] vals) {
   synchronized (mutex) {
     list.add(vals);
   }
 }