Reverse engineered GEMM code for Djinevski's proposal.