Implements matrix vector multiplication