Fixed generic matrix multiplication