initialized the integer array used for dimension reordering