v_compare function

Compare two vectors