Working with linked lists and a binary search tree.