inline array loops

No need to have loops in separate function.  Incurs a slight, but
noticeable overhead.
lab update + figures

Added more material to lab.  Added figures showing the cache measurement
methods.