Added nearest neighbor model