Locality sensitive hashing in R