finalized BST writeup