DSGM_Distance