function d = hamdist(x,y)

     d = sum(abs(x - y));
