Fast K-dimensional tree algorithms for nearest neighbor search with application to vector quantization encoding | Synapse