WIP: adds an AVL binary tree structure.
- bugs: the tree is only rebalancing when L + 2 > R or L < R + 2, so one step too late. Maybe the depth values are one too few? Or updated too late?