fixed instantiation error for BST