This needs to change to 
   Double[] deltaParticle = ExtraMath.newDoubleArray(particleMass.length);