Implemented vector-matrix multiplication