SPEC hashing: Similarity preserving algorithm for entropy-based coding | Synapse