Improved BinaryHeap