Update hw3.py

Map mat --> Columns for M-v
Map mat --> Rows for v-M
commutativity in matrix multiplication is broken