Locality sensitive hashing for Apache Spark