code: public INDArray queryAll(INDArray toQuery,int n) {
          return RPUtils.queryAll(toQuery,data,trees,n,similarityFunction);
      }
docs: Query results up to length n
  nearest neighbors
  @param toQuery the query item
  @param n the number of nearest neighbors for the given data point
  @return the indices for the nearest neighbors