public static String treeToString(TreeMap<Integer, Integer> tree)
	{
		StringBuilder builder = new StringBuilder();
		
		for(Entry<Integer, Integer> i : tree.entrySet())
		{
			builder.append(i.getKey() + " " + i.getValue() + "\n" );
		}
		return builder.toString();
	}