dif_TP function

Closest differences