結果 : max heap implementation javascript