Implemented matrix vector multiplication