BST from list has bug