Made velocity calculation mutable.

Was getting GC hangs, so I made the velocity calculation a fixed
allocation.