normalize similarity coefficients