BinaryHeap without indexOf