Fix bug in gemm and transpose. Pass all test.
Caution: now the matrix is stored col by col.