// upHeapify reconstruct a heap for up.
upHeapify reconstruct a heap for up.
// upHeapify reconstruct a heap for up .
func (h *Heap) upHeapify(index int) {
	for h.values[index] < h.values[h.parent(index)] {
		h.swap(index, h.parent(index))
	}
}
func ( h * Heap ) upHeapify ( index int ) { for h . values [ index ] < h . values [ h . parent ( index ) ] { h . swap ( index , h . parent ( index ) ) } }
upHeapify reconstruct a heap for up.
upHeapify reconstruct a heap for up .