code: private double naiveQuery(V obj, WritableDoubleDataStore scores, HashSetModifiableDBIDs cands) {
      if(obj instanceof SparseNumberVector) {
        return naiveQuerySparse((SparseNumberVector) obj, scores, cands);
      }
      else {
        return naiveQueryDense(obj, scores, cands);
      }
    }
docs: Query the most similar objects, abstract version.
  
  @param obj Query object
  @param scores Score storage (must be initialized with zeros!)
  @param cands Non-zero objects set (must be empty)
  @return Result