changed BST struct to class