fixing buildHeap to use bubbleDown.