SpMdM: Added support for arbitrary layouts of dense factor and result when using CUDA.

SpMdM implementation for CSR, COO, and ELL now complete.