pytagoras-distance-methode made public and used in caluclateMaxEpsilon