CUDA/C++ emulation of a content-addressable memory, using the Levenshtein distance as the similarity measure