Binary Heap implementation in CoffeeScript [based on BinaryHeap.js]