Storing a matrix as byte array fixed.