Reorder looping structures in the Amplitude and AmplitudeManager classes to avoid CPU cache misses when fetching from memory. This version should be functionally identical to previous versions but provides some significant peformance improvements for some CPU fits.