is_equal function

Test two vectors for pairwise (near) equality.