An Algorithm for Finding Nearest Neighbors | Synapse