improves nearest neighbors algo
improves nearest neighbors