Similarity search and locality sensitive hashing using ternary content addressable memories | Synapse