Change loop nesting ordering so that quality is in the outer loop
Change loop nesting ordering so that quality is in the outer loop

This makes the samples/sec rate more consistent throughout the tracing
process.

peterstace/grayt,peterstace/grayt,peterstace/grayt