private static FrequencyTable getFrequencies(byte[] b) {
		FrequencyTable freq = new SimpleFrequencyTable(new int[3]);
		// InputStream input = new BufferedInputStream(new FileInputStream(file));

		for (byte x : b) {
			freq.increment(x & 0xFF);
		}
		freq.increment(2);

		// try {
		// 	while (true) {
		// 		int b = input.read();
		// 		if (b == -1)
		// 			break;
		// 		freq.increment(b);
		// 	}
		// } finally {
		// 	input.close();
		// }
		return freq;
	}