Implemented matrix-vector multiplication