Using k-d trees to efficiently calculate nearest neighbors in 3D vector space · HackerTrans