The representation of two-dimensional sequences as one-dimensional sequences