Implementation of the PkNN method for distributed knn search from the paper "Pivot-based Distributed K-Nearest Neighbor Mining" ECML-KDD 2017