Locality-sensitive hashing java implementation