function c = member(x,v)
c = 0;
for i = v
  if i == x
     c = 1;
     break
  end
end