Notes from Friday 3 October 2014, Trees: BST and AVL trees