Almost full CPU implementation of SPMM for COO adopted from CUSP!