Added 4 methods to BinaryHeap.