Use of the Spatial KD-Tree in Computational Physics Applications. (2007). Communications in Computational Physics, 2(3), 545-576. https://global-sci.com/index.php/cicp/article/view/5469