public static void main(String[] args)
	{

		char letter[] = { 'a', 'b', 'c', 'd', 'e', 'f' };
		double frequency[] = { 0.45, 0.13, 0.12, 0.16, 0.09, 0.05 };

		PrefixTree pt = new PrefixTree(letter, frequency);
		for (int i = 0; i < letter.length; i++)
			System.out.println(letter[i] + " : " + pt.getCode(letter[i]));
	}