Изменения
→merge
curH = H.head;
while curH.sibling != null
if curH.degree == curH.sibling.degree {
p[curH] = curH.sibling;
tmp = curH.sibling;
curH = tmp;
continue;
curH = curH.sibling;