Changed C generator to lay out all matrices sequentially in memory.
Tried out BLAS; BLAS actually decreases performance of matrix multiply.