Auxiliary function used by MLeNN and MLTL. Gets the kNN of every instance in a dataset, when compared to some of the rest
getAllNeighbors2(neighbors, d, k)
A list of vectors with the indexes of the neighbors for each instance
Structure with all the neighbors in the dataset, regardless of which ones to be compared
Vector with the instances of the dataset which are going to be compared
Number of neighbors to be retrieved