support for matrix-matrix multiplication on host and GPU