結果 : heap in python implementation