public ArrayList<ArrayList<Double>> vectorsCompletionForMaintenance(ArrayList<String> newWordsArray, StatisticData[][] sd, int numOfComments, String articleId) throws SQLException{
		ArrayList<String> wordArray = HelperFunctions.addNewWordsToOldWords(newWordsArray, articleId);
		DatabaseOperations.setArticleWords(articleId, wordArray);
		ArrayList<ArrayList<Double>> commentsVectors = new ArrayList<ArrayList<Double>>();
		ArrayList<Double> vector;
		boolean flag = false;
		int wordsArraySize = wordArray.size();
		int newWordsSize = sd[0].length;
		
		for(int i = 0; i < numOfComments; i++){
			vector = new ArrayList<Double>();
			for(int j = 0; j < wordsArraySize; j++){
				flag=false;
				Vector<Integer> vectorOfTheComment;
				for(int t = 0; t < newWordsSize; t++){
					if(sd[0][t].getTerm().equals(wordArray.get(j))){
						vectorOfTheComment = sd[0][t].getListOfSentenceIndeces();
						int sizeOfVector = vectorOfTheComment.size();
						for(int k = 0; k < sizeOfVector; k++)
							if(vectorOfTheComment.get(k) == i){
								flag =true;
								break;
							}
					}
				}
				if(flag == true)
					vector.add((double)1);
				else
					vector.add((double)0);
			}
			vector.add((double)1);
			commentsVectors.add(vector);
		}
		return commentsVectors;
	}