Adding routine to make a 1-dimensional array from an n-dimensional array.