correct implementation

we need to track the height of each branch (left and right) for each node.
Tracking only the balance factor is not enough