結果 : heap python implementation