BinaryHeap code compiles