added const keywords to computeParticleVelocity
added const qualifiers to functions