Aligned allocation of modelVector to avoid a large heap array computing the model image.

Changed the collapse(2) OpenMP directive to a explicit single loop. Not as elegant, but gets the work done and keeps it compatible to OpenMP 2.5.