結果 : heap tree program in python