Build BST from linked list