added function for multiplication matrix and vector