Neighborhood preserving hashing and approximate queries | Synapse