Updated MatMult to behave more like numpy.dot in allowing matrix-vector products