Fast geometrical extraction of nearest neighbors from multi-dimensional data. (April 2023)