additional problems on linked list, bst, and statuc var