change order of dimensions for results vectors, to improve storage efficiency wrt fortran-order storage in multi-dimensional arrays