Let w be the node that was added that unbalanced the tree
let z be the first node from w towards the root
where the tree is unbalanced
let y be the child of z with the greater height
let x be the child of y with the greater height,
if there is a tie, choose the ancestor of w
Adding the element to the subtree in y caused the tree
to become unbalanced, and it now has height 2 greater
than the other subtree of z.