function result = normalize(values)
%normalize result to values in the interval 0 and 1

lowerbound = min(min(values))
dist = max(max(values)) - lowerbound + 1
result = values ./ dist - (lowerbound / dist);