Add similarity metric computation utility class.