Binary Heap (Priority Queue) in JavaScript | Hacker News Reader