Изменения
→merge
curH2 = H2.head;
while curH1 != null && curH2 != null
if curH1.degree < curH2.degree {
curH.sibling = curH1;
curH = curH1;
curH1 = curH1.sibling;
curH.sibling = curH2;
curH = curH2;
curH2 = curH2.sibling;
if curH1 == null {
while curH2 != null