finish chapter 12, binary search tree