Clean up matrix multiplication for transposed case. I've really got to document this stuff soon...