結果 : how to implement a heap in python