buildHeap seems to work.