linked list and stacks and binary search trees