Data structures and algorithms for nearest neighbor search in general metric spaces | Synapse