A fast K Nearest Neighbor library for low-dimensional spaces