An implementation of locality sensitive hashing