weighted tree rotation
kruskal, kombinatorika