change modulo to division in CRS/CCS matrix align