private void countVectorsModulo() {
    for (wordsDocument doc : webDocs) {
      doc.powVectors = new double[dictionarySize];
      for (int i = 0; i < doc.powVectors.length; i++)
        doc.powVectors[i] = Math.pow(doc.vectors[i], 2);
      double allNumbers = 0;
      for (int i = 0; i < doc.powVectors.length; i++)
        allNumbers += doc.powVectors[i];
      doc.modVector = Math.sqrt(allNumbers);
    }
  }