private static int[][] getAllMessages(int wordCount, int k, int q) {
		int[][] words = new int[wordCount][k];
		int count = wordCount;
		for (int j = 0; j < k; j++) {
			int wordLine = 0;
			int symbol = 0;
			count /= q;
			for (int i = 0; i < wordCount / count; i++) {
				for (int l = 0; l < count; l++) {
					words[wordLine][j] = symbol;
					wordLine += 1;
				}
				symbol += 1;
				symbol %= q;
			}
		}
		return words;
	}