Adding locality-sensitive hashing