week6 code: the mapper of multiplication between matrix and vector