refactored LinkedList and BST to just take in any value