Normalize similarity metric