function out = dist(a,b)

out = sqrt(sum((a-b).^2));