Neighbors calculation (using Voronoi) and implementation of NN are linked now. It works, but not so good as I wish. I will figure out the problem in two days