Nearest Neighbor Method Tm