Merge pull request #25 from tomasmcz/master

fix a nasty bug in gemm operations, where the dimension information was never properly transposed