function value = distance(point1, point2)

% Since the square root is a monotonous function, it does not
% alter the order of distances. Thus it can be dismissed from
% our computations.

value = sum( (point1 - point2).^2 );