linked list and bst