Basic psy-Distance algorithm : check