Code is ugly but finished converting BST into LinkedList