More work on binary heap.