Implemented a maximum number of particles to be used in calculating velocities.  The default is 10^7.  Any more and memory becomes an issue