Improved performance of v_mul by passing by reference