function Heap._HeapifyBottomUp(R,q)local Y=math.floor(q/2)while R[Y]and R.Comparator(R[q],R[Y])do R[Y],R[q]=R[q],R[Y]q=Y Y=math.floor(q/2)end end

function Heap:_HeapifyBottomUp(i)
	local parent = math.floor(i / 2);
	while self[parent] and self.Comparator(self[i], self[parent]) do
		self[parent], self[i] = self[i], self[parent];
		i = parent;
		parent = math.floor(i / 2);
	end
end
