transpose package:bytestring

The transpose function transposes the rows and columns of its ByteString argument.